package com.flyme.module.base.client.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.math.BigDecimal;

/**
 * 余额变动事件
 */
@Getter
public class BalanceChangeEvent extends ApplicationEvent {

    private Long userId;
    private BigDecimal amount;
    private String outTradeNo;

    public BalanceChangeEvent(Object source, Long userId, BigDecimal amount, String outTradeNo) {
        super(source);
        this.userId = userId;
        this.amount = amount;
        this.outTradeNo = outTradeNo;
    }
}
